package com.ibiaoke.system.service;

import com.ibiaoke.common.base.Page;
import com.ibiaoke.system.entity.Advert;

import java.util.List;

/**
 * Created by Administrator on 2017/6/12.
 */
 public interface AdvertService {

    /**
     * 添加Advert
     * @param advert
     * @return
     */
    int saveAdvert(Advert advert);

    /**
     * 修改Advert
     * @param advert
     * @return
     */
    int updateBannerById(Advert advert);

    /**
     * 删除Advert
     * @param advertId
     * @return
     */
    int deleteBannerById(Integer advertId);

    /**
     * 查询Advert
     * @param position
     * @param showFlag
     *@param page  @return
     */
    List<Advert> listBanner(Integer position, Integer showFlag, Page page);
}
